package com.boot.service.impl;


import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.boot.entity.Code;
import com.boot.mapper.CodeDao;
import com.boot.service.CodeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;




@Service("codeService")

public class CodeServiceImpl extends ServiceImpl<CodeDao, Code> implements CodeService {
	@Resource
	private CodeDao codeDao;

	public void save(Code code) {
		codeDao.save(code);

	}

	@Override
	public Code findByPhone(HashMap<String, Object> params) {
		return codeDao.findByPhone(params);
	}


}
 